<?php
$list = $this->list ? $this->list : array();
$isRow = $this->row ? $this->row : false;
?>
<ul class="list">
	<?php
	foreach($list AS $row) {
		if($isRow) {
			$cover = $row->getCover()->getSmall(false);
			$special = $row->toArray();
			$url = $this->url('special/gallery', array('name' => $special['name']));
		} else {
			$cover =$row['_cover']['small'];
			$special = $row;
			$url = $row['_gurl'];
		}
	?>
	<li>
		<div class="img">
			<a href="<?php echo $url;?>"><img src="<?php echo $cover;?>" alt="<?php echo $this->escape($special['title']);?>" /></a>
			<h3 class="hidden"><a href="<?php echo $url;?>"><?php echo $this->escape($special['title']);?></a></h3>
		</div>
	</li>
	<?php } ?>
</ul>